﻿using System.Collections;
using System.Collections.Generic;

namespace LCS.Api.Localization
{

    public class Localization : ILocalization
    {
        Dictionary<string, string> dictonary = new Dictionary<string, string>()
        {
            {"login_login_success","登陆成功"},
            {"login_login_failed","登录失败"}
        };


        public string GetText(string key)
        {
            if (dictonary.ContainsKey(key))
            {
                return this.dictonary[key];
            }
            else
            {
                return key;
            }

        }

    }
}
